<?
ob_start();
session_start();
date_default_timezone_set('Asia/Bangkok');
$departid = $_SESSION["departid"];
echo $departid."<br>";
include "../connect.php";

$strSQL = "SELECT * FROM depart WHERE departid = '$departid' ";
$objQuery = mysql_query($strSQL);
$result = mysql_fetch_array($objQuery);
echo $result["de_id"];
?>